package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.ChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {
    /**
     * 后台修改频道信息
     * @param wmChannel
     * @return
     */
     ResponseResult updateChannel(WmChannel wmChannel);

    /**
     * 自媒体频道列表查询
     * @return
     */
    ResponseResult findAllChannel();

    /**
     * 后台管理平台频道查询
     * @return
     */
    ResponseResult findChannel(ChannelDto channelDto);

    /**
     * 后台保存自媒体品频道
     * @param wmChannel
     * @return
     */
    ResponseResult saveChannel(WmChannel wmChannel);

    /**
     * 删除频道
     * @param id
     * @return
     */
    ResponseResult deleteChannel(Integer id);
}
